<?
// PFEILE
$selectedind=0;
$count=0;
foreach($contents as $c){
	if($model->id==$c->id){
		$selectedind=$count;
	}
	$count++;
}
$previndex=$selectedind-1;
$nextindex=$selectedind+1;
$pfeile='';


$bereich=$this->id;


$bgimgclass=$bereich.'_both';
if($previndex<0){
	$bgimgclass=$bereich.'_right';
}
if($nextindex == count($contents)){
	$bgimgclass=$bereich.'_left';
}

if($nextindex== count($contents) && $previndex<0){
	$bgimgclass=$bereich.'_none';
}

echo '<div id="mininavi" class="'.$bgimgclass.'">';
echo '<div class="linkleft">';
if($previndex>=0){
	echo html::anchor($this->id.'/'.$contents[$previndex]->shortname,'');
}
echo '</div>';


echo '<div class="linkright">';
if($nextindex<count($contents)){
	echo html::anchor($this->id.'/'.$contents[$nextindex]->shortname,'');
}
echo '</div>';


echo '</div>';
?>